package cn.bdqn.service.impl;


import cn.bdqn.mapper.AppCategoryMapper;
import cn.bdqn.pojo.AppCategory;
import cn.bdqn.service.AppCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
@Service
public class AppCategoryServiceImpl implements AppCategoryService {
    @Autowired
    public AppCategoryMapper appCategoryMapper;

    @Override
    public List<AppCategory> getParentId(int parentId) {
        return appCategoryMapper.getParentId(parentId);
    }

    @Override
    public List<AppCategory> getLevel1() {
        return appCategoryMapper.getLevel1();
    }
}
